package com.project.utils;

import java.io.File;

public class FileUtil {
    /**
     * author: WheelChen
     * date: 2017/9/5
     * function: 删除文件
     *
     * @param fileName 文件名
     * @return
     */
    public static boolean delFile(String fileName){
        Boolean flag = false;
        File file = new File(fileName);
        try {
            if (file.exists()){
                file.delete();
                flag = true;
            }
        }catch (Exception e){
            e.printStackTrace();
        }
        return flag;
    }
}
